    package com.example.demo.entity;
    import com.baomidou.mybatisplus.annotation.*;
    import com.baomidou.mybatisplus.extension.activerecord.Model;
    import com.fasterxml.jackson.annotation.JsonFormat;
    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.NoArgsConstructor;

    import java.util.Date;

    @TableName("rules2")
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public class Rules2 extends Model<Rules2> {
        @TableId(value = "id",type = IdType.AUTO)
        private Integer id;
        private Integer year;
        private String grade;
        private String rule;
        @JsonFormat(pattern = "yyyy-MM-dd--HH:mm:ss",timezone = "GMT+8")
        private Date uptime;

        @TableLogic
        private Integer delete;

    }
